<?php
// +----------------------------------------------------------------------
// |
// +----------------------------------------------------------------------
// |
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// |
// +----------------------------------------------------------------------

namespace app\admin\model;

use \think\Model;

class SmsSetting extends Model
{
    protected $name = 'sms_setting';
    protected $autoWriteTimestamp = false;
    protected $insert = [];
    protected $update = [];

    public function getTemplateAttr($value)
    {
        return $value ? json_decode($value, true) : [];
    }
}
